import request from '@/utils/request'

// 查询技师信息列表
export function listArtificer(query) {
  return request({
    url: '/bath/artificer/list',
    method: 'get',
    params: query
  })
}



// 查询技师信息详细
export function getArtificer(artificerId) {
  return request({
    url: '/bath/artificer/' + artificerId,
    method: 'get'
  })
}

// 新增技师信息
export function addArtificer(data) {
  return request({
    url: '/bath/artificer',
    method: 'post',
    data: data
  })
}

// 修改技师信息
export function updateArtificer(data) {
  return request({
    url: '/bath/artificer',
    method: 'put',
    data: data
  })
}

// 删除技师信息
export function delArtificer(artificerId) {
  return request({
    url: '/bath/artificer/' + artificerId,
    method: 'delete'
  })
}

// 导出技师信息
export function exportArtificer(query) {
  return request({
    url: '/bath/artificer/export',
    method: 'get',
    params: query
  })
}